<template>
    <div class="contain">
        <button @click="test" style="position:absolute;width:100px;height:40px;border:none;border-radius:4px;background:#4376C4;color:white;cursor:pointer;top:50px;left:calc(50% - 50px)">测试</button>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    components: {
        
    },
    methods:{
        test(){
            axios.get('/assignPolice',{
                params: {
                    page: 1,
                }}
            ).then(
                response=>{
                    console.log('请求成功',response.data);
                },
                error=>{
                    console.log('请求失败了',error.message);
                }
            )
        }
    }
}
</script>

<style>
    .contain{
        width: 100%;
        height: 100%;
        background-image: url(../assets/53bg.png);
    }
</style>